hotplug: add openvswitch script
authorIan Campbell <ian.campbell@citrix.com>
Tue, 23 Apr 2013 10:00:57 +0000 (11:00 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 24 Apr 2013 11:14:57 +0000 (12:14 +0100)
commit3051bdedc3ef82eb5f14978823dec00784d69d0e
tree9fc82ed0ce6ede5b642bef7f47993e0de4d029f6
parent6e96c186d23873597896051b043cfeb119c4a7d5
hotplug: add openvswitch script

Based on Waldi's RFC at
http://lists.xen.org/archives/html/xen-devel/2012-09/msg00943.html

To use it set vif.default.script="vif-openvswitch" in /etc/xen/xl.conf or use
script=vif-openvswitch in the vif configuration.

Appears to do the right thing for PV and HVM guests (including tap devices)
and with stubdomains.

In order to support VLAN tagging and trunking the "bridge" specified in the
configuration can have a special syntax, that is:

BRIDGE_NAME[.VLAN][:TRUNK:TRUNK]

e.g.
- xenbr0.99
     add the VIF to VLAN99 on xenbr0
- xenbr0:99:100:101
     add the VIF to xenbr0 as a trunk port receiving VLANs 99, 100 & 101

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Bastian Blank <waldi@debian.org>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
Cc: dev@openvswitch.org
tools/hotplug/Linux/Makefile
tools/hotplug/Linux/vif-openvswitch [new file with mode: 0644]